<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-problem-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">问题：</label>
				<div class="col-sm-8">
					<input id="title" name="title" class="form-control" type="text">
				</div>
			</div>	
			<div class="form-group">	
                <label class="col-sm-3 control-label">问题内容：</label>
                <div class="col-sm-8">
                    <input id="content" name="content" class="form-control" type="text">
                </div>
            </div>		
			<div class="form-group">
				<label class="col-sm-3 control-label">标签：</label>
				<div class="col-sm-8">
					<select id="dictLabel" name="dictLabel" class="form-control m-b" th:with="type=${@dict.getType('knowledge_label')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
	                </select>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/problem"
		$("#form-problem-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-problem-add').serialize());
	        }
	    }
	</script>
</body>
</html>
